// Copyright (c) 2023 - 2025 Restate Software, Inc., Restate GmbH.
// All rights reserved.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0.

/// This method can be used to define inline the default values for serde attributes. E.g.:
///
/// ```
// #[derive(Debug, Deserialize, JsonSchema)]
// pub struct MyStruct {
//     #[serde(default = "restate_serde_util::default::bool::<true>")]
//     pub my_bool: bool,
// }
/// ```
pub const fn bool<const V: bool>() -> bool {
    V
}
